home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 February / macformat-047.iso / Demos / Chiller Killers / Chiller / Chiller.DXR / 00029.ls < prev    next >
Encoding:
Text File  |  1996-11-28  |  814 b   |  49 lines

  1. on exitFrame
  2.   global rate, catch, syn, drums, ok
  3.   set catch to the timer / 60.0
  4.   set rate to 25 / catch
  5.   if syn > 3 then
  6.     puppetSound(2, 93)
  7.   end if
  8.   if syn > 4 then
  9.     puppetSound(2, 0)
  10.     puppetSound(2, 168)
  11.     set drums to 0
  12.     set ok to random(10)
  13.     if ok = 1 then
  14.       do("sel2")
  15.     end if
  16.     if ok = 2 then
  17.       do("sel3")
  18.     end if
  19.     if ok = 3 then
  20.       do("sel6")
  21.     end if
  22.     if ok = 4 then
  23.       do("sel7")
  24.     end if
  25.     if ok = 5 then
  26.       do("sel9")
  27.     end if
  28.     if ok = 6 then
  29.       do("sel11")
  30.     end if
  31.     if ok = 7 then
  32.       do("sel15")
  33.     end if
  34.     if ok = 8 then
  35.       do("sel16")
  36.     end if
  37.     if ok = 9 then
  38.       do("sel20")
  39.     end if
  40.     if ok = 10 then
  41.       do("sel21")
  42.     end if
  43.     cursor(-1)
  44.     play frame "intro"
  45.   else
  46.     go("sync")
  47.   end if
  48. end
  49.